package com.example.zhihu.not;

import com.example.zhihu.bean.DailyNewsBean;
import com.example.zhihu.bean.FuliBean;
import com.example.zhihu.bean.NaviBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface ApiService {
    String sWanUrl = "https://wanandroid.com/";

    //公众号tab
    //导航
    @GET("navi/json")
    Observable<NaviBean> getNavi();
    String sUrl = "http://news-at.zhihu.com/api/4/";

    /**
     * 2)最新日报
     * news/latest
     * 3)往期日报
     * news/before/{date}   日期格式(20181206)
     */

    @GET("news/latest")
    Observable<DailyNewsBean> getLatestNews();


    @GET("news/before/{date}")
    Observable<DailyNewsBean> getOldNews(@Path("date") String date);
    String url="https://gank.io/api/data/";
    @GET("%E7%A6%8F%E5%88%A9/20/2")
    Observable<FuliBean> getfuli();
}
